home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
Clean 1.2.4
/
Small Demos
/
twice.icl
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-06-20
|
230 b
|
17 lines
|
[
TEXT/3PRM
]
module twice
/*
The Twice function.
An integer (0) is incremented 65536 times using the higher
order function Twice.
*/
import StdClass, StdInt
Twice::(x -> x) x -> x
Twice f x = f (f x)
Start::Int
Start = Twice Twice inc 0